package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:char(11)"`
	Password string `gorm:"type:char(32)"`
	NickName string `gorm:"type:varchar(30)"`
}

// 公告
type InfoBoard struct {
	gorm.Model
	Uid   int    `gorm:"type:int(11)"`
	Title string `gorm:"type:varchar(50)"`
}

// 评论表
type Context struct {
	gorm.Model
	Uid     int    `gorm:"type:int(11)"`
	Content string `gorm:"type:varchar(200)"`
}
